/*
 * 
 */
package com.china08.yxyapi.entity.mg.moments;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 
 * 评论的点赞,每一个班级圈,每一个人点赞一次存储一条记录,再次点赞进行删除
 * 
 * @author Richard.Wang
 */
@Document(collection = "yxy.tea.moments.praise")
public class YxyMomentsPraise extends MongoBaseEntityNoId {

    /** The Constant serialVersionUID. */
    private static final long serialVersionUID = -3875139402563212090L;

    /** The id. */
    @Id
    private String id;

    /** The moments id. */
    @Field(value = "moments_id")
    private String momentsId;// 对应的班级圈id

    /** The user id. */
    @Field(value = "user_id")
    private String userId;// 点赞用户id

    /** The user nick. */
    @Field(value = "user_nick")
    private String userNick;// 点赞用户名称

    /**
     * Gets the id.
     *
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * Sets the id.
     *
     * @param id
     *            the id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Gets the moments id.
     *
     * @return the moments id
     */
    public String getMomentsId() {
        return momentsId;
    }

    /**
     * Sets the moments id.
     *
     * @param momentsId
     *            the moments id
     */
    public void setMomentsId(String momentsId) {
        this.momentsId = momentsId;
    }

    /**
     * Gets the user id.
     *
     * @return the user id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * Sets the user id.
     *
     * @param userId
     *            the user id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * Gets the user nick.
     *
     * @return the user nick
     */
    public String getUserNick() {
        return userNick;
    }

    /**
     * Sets the user nick.
     *
     * @param userNick
     *            the user nick
     */
    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

}
